package cc.linker.steplink.crm.merchant.pojo;

import cc.linker.steplink.crm.commons.utils.CustomDoubleSerialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class TransactionDetailsPo {

    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double accountBalance;//账户余额

    private Long accountBalanceCent;//账户余额

    private String payInfo;//支付信息

    private String name;//名称

    private String tradeInfo;//交易信息

    private Integer tradeType;//交易类型 1:活动营销  2:提现   3:充值  4:订单入账

    private String tradeOrderNum;//交易总额

    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double tradeSum;//交易总额

    private Long tradeSumCent;//交易总额

    private Date tradeTime;//交易时间

    private Integer chargeType;//支付方式 0：余额  1：支付宝  2：微信  3：网银  4：线下转账

    private String remark;//备注

    private String otherSide;
    
    private Integer tradeSubType;// 活动营销子类型：1.订单收益2.商品返利3.邀请返利4.平台收入

    // 业务单号
    private String busiSn;

    private String tradeId;

    // 收支类型0-支出 1-收入 默认1
    private Integer type = 1;

    //支付人
    private  String payUser;
}
